﻿<%@ Control Language="C#" ClassName="OrdersDetailsFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataOrdersId" runat="server" Text="Orders Id:" AssociatedControlID="dataOrdersId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataOrdersId" DataSourceID="OrdersIdOrdersOrderDataSource" DataTextField="OrderDate" DataValueField="OrderId" SelectedValue='<%# Bind("OrdersId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:OrdersOrderDataSource ID="OrdersIdOrdersOrderDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataProductsId" runat="server" Text="Products Id:" AssociatedControlID="dataProductsId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataProductsId" DataSourceID="ProductsIdProductsProductDataSource" DataTextField="ProductsName" DataValueField="ProductsId" SelectedValue='<%# Bind("ProductsId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:ProductsProductDataSource ID="ProductsIdProductsProductDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataProductsName" runat="server" Text="Products Name:" AssociatedControlID="dataProductsName" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataProductsName" Text='<%# Bind("ProductsName") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataProductsName" runat="server" Display="Dynamic" ControlToValidate="dataProductsName" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataQuantity" runat="server" Text="Quantity:" AssociatedControlID="dataQuantity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataQuantity" Text='<%# Bind("Quantity") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataPrice" runat="server" Text="Price:" AssociatedControlID="dataPrice" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataPrice" Text='<%# Bind("Price") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataPrice" runat="server" Display="Dynamic" ControlToValidate="dataPrice" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataPrice" runat="server" Display="Dynamic" ControlToValidate="dataPrice" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUnit" runat="server" Text="Unit:" AssociatedControlID="dataUnit" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUnit" Text='<%# Bind("Unit") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataUnit" runat="server" Display="Dynamic" ControlToValidate="dataUnit" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


